<template is="web-header">
  <div :class="fixed == 'headerFixed' ? 'header headerFixed' : 'header'">
      <div class="search iconSprite"></div>
      <slot name="web-title"></slot>
      <div class="menu iconSprite" @click="showShare();"></div>
  </div>
</template>

<script>
  export default {
    name: 'webHeader',
    data() {
      return {

      }
    },
    props:["fixed"],
    methods: {
      back(){
        this.$router.go(-1);
      },
      showShare(){
        this.$emit('menuChild');
      }
    }
  }
</script>
